package com.tulele.vtool.service;

import com.github.pagehelper.PageInfo;
import com.tulele.vtool.model.UserWithdrawLogInfo;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

public interface IUserWithdrawLogInfoService {

    /**
     * 分页获取提现
     * @param queryMap
     * @return
     */
    PageInfo<UserWithdrawLogInfo> getUserWithdrawPageInfo(Map<String, Object> queryMap);

    /**
     * 申请基本账户提现
     * @param userWithdrawLogInfo
     * @return
     */
    @Transactional(isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED, rollbackFor = RuntimeException.class)
    int applyWithdrawCommission(UserWithdrawLogInfo userWithdrawLogInfo);

    UserWithdrawLogInfo getUserWithdrawDesc1(Integer userId);
}
